package com.xbongbong.paas.pojo.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 公海规则脚本
 * 创建时间 2019/3/18 3:47 PM
 * 修改时间 2019/3/18 3:47 PM
 * @author chy
 * @since v1.0
 * @version v1.0
 */
@Getter
@Setter
@ToString
public class ReturnCustomer2PublicDTO {
    private static final long serialVersionUID = -6836586343409925995L;


    @NotBlank(message="{dto.msg.returnCustomer2Public.key.NotBlank}")
    private String key;

    @NotNull(message = "{dto.msg.returnCustomer2Public.notify.NotNull}")
    @Min(value=0, message = "{dto.msg.returnCustomer2Public.notify.Min}")
    @Max(value=1, message = "{dto.msg.returnCustomer2Public.notify.Max}")
    private Integer notify;

    @NotNull(message = "{dto.msg.returnCustomer2Public.back.NotNull}")
    @Min(value=0, message = "{dto.msg.returnCustomer2Public.back.Min}")
    @Max(value=1, message = "{dto.msg.returnCustomer2Public.back.Max}")
    private Integer back;

    @NotNull(message = "{dto.msg.returnCustomer2Public.back.NotNull}")
    @Min(value=0, message = "{dto.msg.returnCustomer2Public.transfer.Min}")
    @Max(value=1, message = "{dto.msg.returnCustomer2Public.transfer.Max}")
    private Integer transfer;

    /**
     * 单公司执行时所需参数
     */
    private String corpid;
}
